package com.albert.order.entry;

import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.util.Date;

/**
 * @author yangjunwei
 * @date 2021/7/3 上午12:40
 */
@Data
@TableName(value = "order_info")
public class OrderInfo {

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    private String orderName;

    private Double amountMoney;

    /**
     * 订单状态（1：未支付；2:已支付；3:已取消；4:已过期）
     */
    private Integer orderStatus;

    private String createUser;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date createTime;

    /**
     * 订单类型（1:一般订单；2:高峰订单）
     */
    private Integer orderType;



}
